package com.topscore.uke.entities;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by 71468 on 2018/3/24.
 */

public class MemberTagType implements Parcelable {

    /**
     * tagCode : 9999
     * inputType : text
     * tagName : 生日
     */

    private String tagCode;
    private String inputType;
    private String tagName;
    private String value;
    private List<MemberTagValue> tagValues;

    public String getTagCode() {
        return tagCode;
    }

    public void setTagCode(String tagCode) {
        this.tagCode = tagCode;
    }

    public String getInputType() {
        return inputType;
    }

    public void setInputType(String inputType) {
        this.inputType = inputType;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public List<MemberTagValue> getTagValues() {
        return tagValues;
    }

    public void setTagValues(List<MemberTagValue> tagValues) {
        this.tagValues = tagValues;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.tagCode);
        dest.writeString(this.inputType);
        dest.writeString(this.tagName);
        dest.writeString(this.value);
        dest.writeTypedList(this.tagValues);
    }

    public MemberTagType() {
    }

    protected MemberTagType(Parcel in) {
        this.tagCode = in.readString();
        this.inputType = in.readString();
        this.tagName = in.readString();
        this.value = in.readString();
        this.tagValues = in.createTypedArrayList(MemberTagValue.CREATOR);
    }

    public static final Parcelable.Creator<MemberTagType> CREATOR = new Parcelable.Creator<MemberTagType>() {
        @Override
        public MemberTagType createFromParcel(Parcel source) {
            return new MemberTagType(source);
        }

        @Override
        public MemberTagType[] newArray(int size) {
            return new MemberTagType[size];
        }
    };
}
